Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme using ThemeExtension #778

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Leptopoda
Copy link

Let the CalendarStyle extend the ThemeExtension introduced in flutter 3.

Yes this raises the minimum required flutter version to version 3.

Why?
Having a theme extension lets us listen to the closest ancestor by using Theme.of(context) similar to how built in widgets do. This lets consumers of this library define the style in thier global ThemeData cleaning up thier code.

This does not break the existing api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant